public class Test_Controller {

    public PageReference calculateSum() {
        sum=sum(firstNumber,secondNumber);
        System.debug('SUM:= ' + sum);
        return null;
    }


     public Integer firstNumber{get; set;}
     public Integer secondNumber{get; set;}
     public Integer sum{get; set;}
     
    private Integer sum(Integer a, Integer b){
    	String strAuthorizationHeader, strUserName,strPassword;
    	Blob blbHeaderValue;
    	
    	strUserName = 'atandon@gmail.com';
    	strPassword = 'Password@123nkCUcFmfTfyxJSddFAZHs86se';
    	blbHeaderValue = Blob.valueOf(strUserName + ':' + strPassword);
    	strAuthorizationHeader = 'BASIC ' + EncodingUtil.base64Encode(blbHeaderValue);
        system.debug('header:= >>>>>> '+strAuthorizationHeader);
        soapSforceComSchemasClassMywebservice.MyWebService wServicePort= new soapSforceComSchemasClassMywebservice.MyWebService();
        wServicePort.inputHttpHeaders_x = new Map<string,string>();
            //Setting a basic authentication header 
        wServicePort.inputHttpHeaders_x.put('Authorization', strAuthorizationHeader);
            //Setting a cookie header 
        wServicePort.inputHttpHeaders_x.put('Cookie', 'name=value');
            //Setting a custom HTTP header 
        wServicePort.inputHttpHeaders_x.put('myHeader', 'myValue');
        
        Integer result =wServicePort.addTwoInteger(2,3);
        
        return result;

    }
 
}